import { defineStore } from 'pinia'

export const useCounterStore=defineStore('user',()=>{
    var id:number =null;
    
	const getId =()=>{
		return id;
	}
	const setId =(user_id : number)=>{
		id=user_id;
	}
    //外部可访问
    return{
        getId,setId
    }
})